<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\ExhibitionCategory */

$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('common', 'exhibition_categories'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="exhibition-category-view">

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            //'id',
            'name',
            [
                'attribute' => Yii::t('common', 'parent_category'),
                'value' => $model->parent_id == 0 ? '--' : \common\models\ExhibitionCategory::getExhibitionCategoryName($model->parent_id),
            ],
            'order',
            [
                'attribute' => Yii::t('common', 'status'),
                'value' => \common\helpers\TStringHelper::getStatusText($model->status),
            ],
            [
                'attribute' => Yii::t('common', 'created_at'),
                'value' => \common\helpers\TStringHelper::ShowDate($model->created_at, 1),
            ],
            //'version',
            //'created_by',
            //'created_at',
            /*'created_from',
            'created_ip',
            'updated_by',
            'updated_at',
            'updated_from',
            'updated_ip',
            'is_deleted',*/
        ],
    ]) ?>

</div>
